﻿using Microsoft.AspNetCore.Mvc;
using WebWap.Handler;

namespace WebWap.Controllers
{
    /// <summary>
    /// 商城
    /// </summary>
    public class MallController : BaseController
    {
        /// <summary>
        /// 首页
        /// </summary>
        public IActionResult Index()
        {
            ViewBag.Title = "首页";
            return View();
        }

        /// <summary>
        /// 产品分类
        /// </summary>
        public IActionResult Cation()
        {
            ViewBag.Title = "分类";
            return View();
        }

        /// <summary>
        /// 产品列表
        /// </summary>
        public IActionResult List()
        {
            ViewBag.Title = "列表";
            return View();
        }

        /// <summary>
        /// 产品明细
        /// </summary>
        public IActionResult Detail()
        {
            ViewBag.Title = "明细";
            return View();
        }

        /// <summary>
        /// 购物车
        /// </summary>
        public IActionResult Shopcar()
        {
            ViewBag.Title = "购物车";
            return View();
        }

        /// <summary>
        /// 确认订单
        /// </summary>
        public IActionResult Confirm()
        {
            ViewBag.Title = "订单";
            return View();
        }

        /// <summary>
        /// 确认支付
        /// </summary>
        public IActionResult Payment()
        {
            ViewBag.Title = "支付";
            return View();
        }

        /// <summary>
        /// 会员中心
        /// </summary>
        public IActionResult Center()
        {
            ViewBag.Title = "会员中心";
            return View();
        }

        /// <summary>
        /// 会员地址
        /// </summary>
        public IActionResult Address()
        {
            ViewBag.Title = "地址";
            return View();
        }
    }
}